﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CommerceOne.Domains.Repositories;
using CommerceOne.Domains.SqlRepositories;
using CommerceOne.Widgets.LeftCategoryNav;

namespace CommerceOne.Widgets.LeftBrandNav
{
    public class LeftBrandNavController
    {
        private readonly IBrandRepository _context = new SqlBrandRepository();

        /// <summary>
        /// Gets the view model.
        /// </summary>
        /// <returns></returns>
        public LeftBrandNavViewModel GetViewModel()
        {
            LeftBrandNavViewModel viewModel = new LeftBrandNavViewModel();
            viewModel.BrandList = this._context.GetAll();
            viewModel.Title = "Brand";
            return viewModel;
        }
    }
}